<?php

include '../includes/common.inc.php';
include $main_path . 'language/' . $language . '/categories.inc.php';
include $include_path . 'dates.inc.php';

$NOW = time();
// get Max Bid for Auction By idUser and idItem
$query = "SELECT MAX(bid) AS maxBid FROM " . $DBPrefix . "bids WHERE auction = '".$_POST['idItem']."'";
$res = mysql_query($query);
if (mysql_num_rows($res)){
    $respond = mysql_fetch_assoc($res);
	if (floatval($_POST['bid']) > $respond['maxBid']){
		echo('true');
	}else{
		echo('false');
	}
}else{
	echo('true');
}
?>
